Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cache runx readme and config locally #14

Merged
merged 1 commit into from
Oct 14, 2024
Merged

feat: cache runx readme and config locally #14

merged 1 commit into from
Oct 14, 2024

Conversation

eunomie
Copy link
Owner

@eunomie eunomie commented Oct 14, 2024

So that we only need to perform a HEAD to get the digest of the reference from the user. This HEAD request and the fact we are using the digest as a key allow to invalidate cache each time the remote image change.

Cache for a specific image with digest DIGEST contains these two items:

  • ~/.docker/runx/cache/sha256/sha256:DIGEST/README.md
  • ~/.docker/runx/cache/sha256/sha256:DIGEST/runx.yaml

Fixes #1

So that we only need to perform a HEAD to get the digest of the
reference from the user. This HEAD request and the fact we are using the
digest as a key allow to invalidate cache each time the remote image
change.

Cache for a specific image with digest DIGEST contains these two items:

- ~/.docker/runx/cache/sha256/sha256:DIGEST/README.md
- ~/.docker/runx/cache/sha256/sha256:DIGEST/runx.yaml

Fixes #1

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie eunomie merged commit ae4dab6 into main Oct 14, 2024
3 checks passed
@eunomie eunomie deleted the cache branch October 14, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add caching for readme/configuration
1 participant